<%@ taglib uri="/WEB-INF/vectrics.tld" prefix="vectrics" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<vectrics:errors/>

<%
	String evalId = request.getParameter("evaluationId");
	if (evalId == null)
		evalId =  request.getParameter("id");
		
	if (evalId == null)
		evalId = (String)request.getSession().getAttribute("evaluationId");
	if (evalId == null)
		evalId = (String)request.getAttribute("evaluationId");
		
	String userId = request.getParameter("userId");
	String skillsEntryLink = request.getContextPath() 
				+ "/admin/jobs/candidate/index.do?evalId=" + evalId;	
	String skillSectionParam = request.getParameter("skillSection");
%>

<table width="100%" class="sectionBg">
	<tr>
		<td valign="TOP"><font class="sectionFont">Evaluation Information</font></td>
	</tr>
</table>
<br>
	<table>
		<tr>
			<td valign="top">
				<vectrics:userEvaluation evaluationId="<%=evalId%>" />
			</td>
			<td valign="top" align="right">
				<table cellpadding="1" cellspacing="1">
					<tr>
						<td>
							<form action="/hrs-intranet/report/admin/EvaluationReport.pdf" method="POST" target="_blank">
								<input type="hidden" name="report" value="userEvaluation">
								<input type="hidden" name="evaluationId" value="<%=evalId%>">
								<input type="hidden" name="userId" value="<%=userId%>">
								<vectrics:formButton elementId="eval.pdf.btn" code="button.param" phraseCode="button.eval.pdf" value="submit" name="submit"/>
							</form>
							
							<form action="/hrs-intranet/admin/user/eval/edit.do" method="POST">
								<input type="hidden" name="evaluationId" value="<%=evalId%>">
								<input type="hidden" name="userId" value="<%=userId%>">
								<vectrics:formButton elementId="eval.edit.btn" code="button.param" phraseCode="button.eval.edit" value="submit" name="submit"/>
							</form>
							
							<form action="/hrs-intranet/admin/user/view.do" method="POST">
								<input type="hidden" name="id" value="<%=userId%>">
								<vectrics:formButton elementId="user.info.btn" code="button.param" phraseCode="button.user.info" value="submit" name="submit"/>
							</form>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
<br>
<br>
<br>
<table width="100%" class="sectionBg"><tr><td valign="TOP" class="sectionBg"><font class="sectionFont">Skills Assessment</font></td></tr></table>

<% if (skillSectionParam == null) { %>
	<br>
	<vectrics:userSkillsSummary evaluationId="<%=evalId%>" />
<% } else { %>
	<br>
	<vectrics:userSkillSections evaluationId="<%=evalId%>" />
<% } %>


